import { IPSPicture } from './ipspicture';
import { PSFileUploaderImpl } from './psfile-uploader-impl';

export class PSPictureImpl extends PSFileUploaderImpl implements IPSPicture {
  get maxFileCount(): number {
    return this.M.maxFileCount;
  }

  get rawContent(): boolean {
    return this.M.rawContent != null ? this.M.rawContent : false;
  }

  get cls(): string {
    return 'PSPictureImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'control.editor.IPSPicture') return true;
    return super.instanceof(cls);
  }
}
